//
//  BHFunDetailSelfApplyInfoCell.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/6/30.
//

import UIKit

class BHFunDetailSelfApplyInfoCell: UITableViewCell {

    @IBOutlet weak var apply_name_label: UILabel!
    
    @IBOutlet weak var apply_phone_label: UILabel!
    
    @IBOutlet weak var price_label: UILabel!
    
    @IBOutlet weak var editeBtn: UIButton!
    
    @IBOutlet weak var phoneBtn: UIButton!
    @IBOutlet weak var launch_user_name_label: UILabel!
    @IBOutlet weak var infoBackView: UIView!
    @IBOutlet weak var iconImgView: UIImageView!
    var model: BHUserFunApplyDetailModel! {
        didSet {
            self.apply_name_label.text = model.signUserName
            self.apply_phone_label.text = model.signUserPhone
            self.price_label.text = "¥\(model.price)"
            self.launch_user_name_label.text = model.launchUserName
            self.iconImgView.sd_setImage(with: URL.init(string: model.launchAvatar), completed: nil)

        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        self.iconImgView.addLayerCorner(10, 0, .white)
        self.infoBackView.addLayerCorner(4, 0, .white)
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    static var infoHeight: CGFloat {
        get {
            return 255
        }
    }
}
